<?php

use \Service\ConsumerService\ConsumerMapping\CommodityMapping;

$commodityMapping = CommodityMapping::instance();
return [
    'supplier_pull_message' => [
        ['fieldName' => $commodityMapping->defaultStock, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->taxRate, 'defaultValue' => 0, 'specialHandling' => 'sprintf'],
        ['fieldName' => $commodityMapping->hsCode, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->goodstype],
        ['fieldName' => $commodityMapping->upstreamSaleType],
        ['fieldName' => $commodityMapping->barcode],
        ['fieldName' => $commodityMapping->name],
        ['fieldName' => $commodityMapping->imageUrl, 'defaultValue' => '[]'],
        ['fieldName' => $commodityMapping->description, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->uinit],
        ['fieldName' => $commodityMapping->brand],
        ['fieldName' => $commodityMapping->classify],
        ['fieldName' => $commodityMapping->originPlace],
        ['fieldName' => $commodityMapping->key, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->isHaveTaxRate, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->isFreeShipping, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->commodityArchivesID, 'defaultValue' => 0],
    ],
    'same_level_yun_cang_message' => [
        ['fieldName' => $commodityMapping->defaultStock, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->taxRate, 'defaultValue' => 0, 'specialHandling' => 'sprintf'],
        ['fieldName' => $commodityMapping->hsCode, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->goodstype],
        ['fieldName' => $commodityMapping->upstreamSaleType],
        ['fieldName' => $commodityMapping->barcode],
        ['fieldName' => $commodityMapping->name],
        ['fieldName' => $commodityMapping->imageUrl, 'defaultValue' => '[]'],
        ['fieldName' => $commodityMapping->description, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->uinit],
        ['fieldName' => $commodityMapping->brand],
        ['fieldName' => $commodityMapping->classify],
        ['fieldName' => $commodityMapping->originPlace],
        ['fieldName' => $commodityMapping->key, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->priceControlType, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isHaveTaxRate, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->isFreeShipping, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->isNeedWeiXinPay, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isNeedIDCard, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->isNeedUploadIDCard, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->limitOrControlPrice, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->conSumptionTaxRate, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->conSumptionPrice, 'defaultValue' => 0],
    ],
    'import_message' => [
        ['fieldName' => $commodityMapping->defaultStock, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->taxRate, 'defaultValue' => 0, 'specialHandling' => 'sprintf'],
        ['fieldName' => $commodityMapping->hsCode, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->goodstype],
        ['fieldName' => $commodityMapping->upstreamSaleType],
        ['fieldName' => $commodityMapping->barcode],
        ['fieldName' => $commodityMapping->name],
        ['fieldName' => $commodityMapping->imageUrl, 'defaultValue' => '[]'],
        ['fieldName' => $commodityMapping->description, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->uinit],
        ['fieldName' => $commodityMapping->brand],
        ['fieldName' => $commodityMapping->classify],
        ['fieldName' => $commodityMapping->originPlace],
        ['fieldName' => $commodityMapping->key, 'defaultValue' => ''],
        ['fieldName' => $commodityMapping->isHaveTaxRate, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->conSumptionTaxRate, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->conSumptionPrice, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isFreeShipping, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->limitOrControlPrice, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isNeedWeiXinPay, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isNeedUploadIDCard, 'defaultValue' => 0],
        ['fieldName' => $commodityMapping->isNeedIDCard, 'defaultValue' => 1],
        ['fieldName' => $commodityMapping->customID, 'defaultValue' => 0],
    ]
];